package com.example.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName wd_collection
 */
@TableName(value ="wd_collection")
@Data
public class Collection implements Serializable {
    /**
     * 收藏id
     */
    @TableId(value = "collection_id", type = IdType.ID_WORKER_STR)
    private String collectionId;

    /**
     * 收藏用户id
     */
    private String userId;

    /**
     * 收藏的物品id
     */
    private String goodsId;

    /**
     * 收藏时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    private static final long serialVersionUID = 1L;
}